package com.maes.hughes.example.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by Hughes on 2017/9/21.
 */


@Configuration
@ComponentScan("com.maes.hughes.example.spring")
@PropertySource("classpath:java.properties")
public class MyConfig {

    @Value("${my.name}")
    private String name;


}


